#ifndef __calc_H__
#define __calc_H__

#include"stack.h"

int Calculator(STACK *stack, char *expression);

int GetOperands(STACK *stack, double *left, double *right);

void postfix(STACK *stack, char *expression,char *fix_exp);    //求后缀表达式

int GetIsp(char * exp);       //求栈内优先级

int GetIcp(char *exp);       //求栈外优先级

int PrintMatchPairs(STACK *stack, char *expression);

#endif
